package com.bite.rabbitmq.rabbitopsdemo.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

//@Component
public class ConsumerListener {
    @RabbitListener(queues = "cluster.queue")
    public void listener(Message message) {
        System.out.println("[cluster.queue] 收到消息： " + message);
    }
}
